package jdo.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Tramway {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id_tram;
	@Persistent
	private String nom;
	@Persistent
	private Double coord_x; /*X_WGS84*/
	@Persistent
	private Double coord_y; /*Y_WGS84*/


	
	public Tramway(String name,Double coordinate_x,Double coordinate_y){
		nom=name;
		coord_x=coordinate_x;
		coord_y=coordinate_y;
	}

	public Long getKey() {
		return id_tram;
	}
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}
/*
	public Integer getIdentifiant() {
		return identifiant;
	}

	public void setIdentifiant(Integer identifiant) {
		this.identifiant = identifiant;
	}
*/
	public Double getCoordX() {
		return coord_x;
	}

	public void setCoordX(Double coord_x) {
		this.coord_x = coord_x;
	}
	
	public Double getCoordY() {
		return coord_y;
	}

	public void setCoordY(Double coord_y) {
		this.coord_y = coord_y;
	}
	
}

